package service;

import Pojo.Houselist;
import dao.HouselistMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HouselistServiceImpl
  implements HouselistService
{

  @Autowired
  private HouselistMapper houselistMapper;

  public List<Houselist> selectAll()
  {
    List houselist = this.houselistMapper.selectAll();
    return houselist;
  }

  public Houselist findhouseid(String houseid)
  {
    Houselist houselist = this.houselistMapper.findhouseid(houseid);
    return houselist;
  }

  public void inserthouse(Houselist houselist)
  {
    this.houselistMapper.inserthouse(houselist);
  }

  public void deletehouse(int id)
  {
    this.houselistMapper.deletehouse(id);
  }

  public Houselist findhouseidupdate(Houselist houselist)
  {
    Houselist list = this.houselistMapper.findhouseidupdate(houselist);
    return list;
  }

  public void updatehouse(Houselist houselist)
  {
    this.houselistMapper.updatehouse(houselist);
  }

  public Houselist findid(int id)
  {
    Houselist list = this.houselistMapper.findid(id);
    return list;
  }

  public void updatehousestatus(Houselist houselist)
  {
    this.houselistMapper.updatehousestatus(houselist);
  }

  public void deletehousebyhouseid(String house_id)
  {
    this.houselistMapper.deletehousebyhouseid(house_id);
  }
}